package test.vo;

import jdbc.InputUtil.InputField;
import test.util.InputUtil;

/**
 * 该类用于表示一篇文章的信息
 */
public class Article {
        @InputUtil.InputField(title = "文章标题",notNull = true)
        private String title;
        @InputUtil.InputField(title = "文章内容",notNull = true)
        private String content;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        @Override
        public String toString() {
            return "Article{" +
                    "title='" + title + '\'' +
                    ", content='" + content + '\'' +
                    '}';
        }
    }


